import React from "react"
import { Route, Routes } from "react-router-dom"
import UserPage from "./UserPage"
import Setting from "./Setting"
import Page404 from "../../Page404"

function User() {
    return (
        <div>
            <Routes>
                <Route path="*" element={<Page404 />}></Route>
                {/* 后续 path="123456"的 123456 换为真实数据ID */}
                <Route path="123456/*" element={<UserPage />}></Route>
                <Route path="setting/*" element={<Setting />}></Route>
            </Routes>
        </div>
    )
}

export default User
